// export class CreateUserDto {}
import { ApiProperty } from '@nestjs/swagger';

export class CreateUserDto {
  @ApiProperty({ description: '用户姓名', example: 'John Doe' })
  name: string;

  @ApiProperty({
    description: '用户年龄',
    example: 30,
    minimum: 0,
    maximum: 120,
  })
  age: number;

  @ApiProperty({ description: '是否已婚', example: true })
  isMarried: boolean;
}
